$(function () {
  $('#logoutBtn').on('click', function () {
    // console.log(1);
    layer.confirm('真的要退出吗?', { icon: 3, title: '提示' }, function (index) {
      // 将本地存储的token删除掉
      localStorage.removeItem('token')
      location.href = '/admin/login.html'
      layer.close(index);
    });
  })
})